package com.sc.portal.service;

import com.sc.common.pojo.CartItem;
import com.sc.common.pojo.CommonResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @auther sc
 * @Date 2017/11/7
 */
public interface CartService {
    CommonResult addItem(Long itemId, Integer itemNum, HttpServletRequest request, HttpServletResponse response);

    List<CartItem> listCart(HttpServletRequest request);

    CommonResult updateNum(Long id, int num, HttpServletRequest request, HttpServletResponse response);

    CommonResult deleteItem(Long id, HttpServletRequest request, HttpServletResponse response);
}
